package com.fmy.security.commons.enums;

/**
 * @author Mr.fmy
 * @version 1.0.0
 * @ClassName TokenRespEnum.java
 * @Description TODO 自定义错误枚举
 * @createTime 2019年07月06日 11:54:00
 */
public enum RespEnum {

    TOKEN_NON_CONFORMITY_ERROR("4010", "token无效"),

    TOKEN_KICK_OUT_ERROR("4011", "账号被踢出"),

    TOKEN_ELSEWHERE_ERROR("4012", "账号在别处登录"),

    TOKEN_NOT_CACHE("4013", "token失效"),

    LOGIN_FAIL("4014", "登录失败");

    String code;
    String desc;

    RespEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }


    public String getCode() {
        return this.code;
    }


    public String getDesc() {
        return this.desc;
    }

}
